// It looks scary, with only 9821 passes
#include<iostream>
using namespace std;
typedef long long ll;
int main() {
  int t; cin>>t;
  while(t--) {
    ll n; cin>>n;
    ll ans = n/6, rem = n%6;
    if(n<=6) ans = 15;
    else {
      ans *= 15;
      if(rem==0) ans += 0;
      else if(rem<=2) ans += 5;
      else if(rem<=4) ans += 10;
      else ans += 15;
    }
    cout<<ans<<'\n';
  }
}

